<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Document</title>
    <link rel="stylesheet" href="http://static.runoob.com/assets/foundation-5.5.3/foundation.min.css">
    <link rel="stylesheet" href="http://static.runoob.com/assets/foundation-icons/foundation-icons.css">
    <script src="http://static.runoob.com/assets/jquery/2.0.3/jquery.min.js"></script>
    <script src="http://static.runoob.com/assets/foundation-5.5.3/js/foundation.min.js"></script>
    <script src="http://static.runoob.com/assets/foundation-5.5.3/js/vendor/modernizr.js"></script>


    <link rel="stylesheet" href="http://cdn.static.runoob.com/libs/foundation/5.5.3/css/foundation.min.css">
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="http://cdn.static.runoob.com/libs/foundation/5.5.3/js/foundation.min.js"></script>
    <script src="http://cdn.static.runoob.com/libs/foundation/5.5.3/js/vendor/modernizr.js"></script>
</head>
<body>

<nav class="top-bar" data-topbar>
    <ul class="title-area">
        <li class="name">
            <!-- 如果你不需要标题或图标可以删掉它 -->
            <h1><a href="#">美LEE街</a></h1>
        </li>
        <!-- 小屏幕上折叠按钮: 去掉 .menu-icon 类，可以去除图标。
        如果需要只显示图片，可以删除 "Menu" 文本 -->
        <li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
    </ul>

    <section class="top-bar-section">
        <ul class="right">
            <li class="active"><a href="#">用户管理中心</a></li>
            <li><a href="./register.html">注册</a></li>
            <li><a href="#">登录</a></li>
            <li><a href="#">注销</a></li>

        </ul>
    </section>
</nav>
<a href="<?php echo U('register');?>" class="button small">添加用户</a>
<table>
    <?php if(is_array($users)): foreach($users as $key=>$vo): ?><tr>
            <td><?php echo ($vo["uid"]); ?></td>
            <td><?php echo ($vo["uname"]); ?></td>
            <td><?php echo ($vo["uni"]); ?></td>
            <td><?php echo ($vo["email"]); ?></td>
            <td><?php echo ($vo["tel"]); ?></td>

            <td>
                <a href="del/uid/<?php echo ($vo["uid"]); ?>" class="button tiny"><i class="fi-x"> </i>删除</a>
                <a href="edit/uid/<?php echo ($vo["uid"]); ?>" class="button tiny">编辑</a>
            </td>
        </tr><?php endforeach; endif; ?>
</table>



</body>
</html>